<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        height: 100px;
        background-color: pink;
      }
    </style>
  </head>
  <div class="box" style="width: 100px;"></div>
  <body>
    <script>
      function fn(a) {
        console.log(a);
        
      }
      const box = document.querySelector(".box")
      fn(box.style.width === "200px")
    </script>
  </body>
</html>
